"""
@Project:catering_takeout
@File:iter_next.py
@Author:柴奇峰
@Date:10:05
"""
class Numasd:
    def __iter__(self):
        self.a = 10
        return self

    def __next__(self):
        if self.a<=1000:
            num = self.a
            self.a += 10
            return num
        else:
            raise StopIteration
myclaa = Numasd()
myiter = iter(myclaa)
for i in myiter:
    print(i)



